package com.zmn.oms.model.dto.messageV1;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 类描述：短连接
 *
 * @author  liuying
 * @date   2022/03/23 14:39
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ShortUrlDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private String link;
    private String miniProgramsLink;

    private Long orderId;
    private Integer ruleId;
    /**
     * 过期时间
     */
    private Date validEndTime;

    /**
     * @see com.zmn.base.shortlink.common.enums.shortlink.ShortLinkTypeEnum#MINIPROGRAMS_SHORTLINK
     */
    private Integer shortLinkType;
}
